//package com.cheng.example.geektime.designpatterns.j60.v2;
//
//
//// 策略接口：EvictionStrategy
//// 策略类：LruEvictionStrategy、FifoEvictionStrategy、LfuEvictionStrategy...
//// 策略工厂：EvictionStrategyFactory
//
//import java.io.FileInputStream;
//import java.util.HashMap;
//
//public class UserCache {
//    private Map<String, User> cacheData = new HashMap<>();
//    private EvictionStrategy eviction;
//
//    public UserCache(EvictionStrategy eviction) {
//        this.eviction = eviction;
//    }
//
//    //...
//}
//
